package com.ruoyi.yipaiju.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.HousePreuploadOrderMapper;
import com.ruoyi.yipaiju.domain.HousePreuploadOrder;
import com.ruoyi.yipaiju.service.IHousePreuploadOrderService;

/**
 * fo_house_preupload_orderService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class HousePreuploadOrderServiceImpl implements IHousePreuploadOrderService 
{
    @Autowired
    private HousePreuploadOrderMapper housePreuploadOrderMapper;

    /**
     * 查询fo_house_preupload_order
     * 
     * @param id fo_house_preupload_order主键
     * @return fo_house_preupload_order
     */
    @Override
    public HousePreuploadOrder selectHousePreuploadOrderById(Long id)
    {
        return housePreuploadOrderMapper.selectHousePreuploadOrderById(id);
    }

    /**
     * 查询fo_house_preupload_order列表
     * 
     * @param housePreuploadOrder fo_house_preupload_order
     * @return fo_house_preupload_order
     */
    @Override
    public List<HousePreuploadOrder> selectHousePreuploadOrderList(HousePreuploadOrder housePreuploadOrder)
    {
        return housePreuploadOrderMapper.selectHousePreuploadOrderList(housePreuploadOrder);
    }
    @Override
    public List<HousePreuploadOrder> selectHousePreuploadOrderList1(HousePreuploadOrder housePreuploadOrder)
    {
        return housePreuploadOrderMapper.selectHousePreuploadOrderList1(housePreuploadOrder);
    }

    /**
     * 根据业务主键查询一条记录：fo_house_preupload_order
     *
     * @param housePreuploadOrder fo_house_preupload_order
     * @return fo_house_preupload_order
     */
    @Override
    public HousePreuploadOrder selectOneHousePreuploadOrder(HousePreuploadOrder housePreuploadOrder)
    {
        return housePreuploadOrderMapper.selectOneHousePreuploadOrder(housePreuploadOrder);
    }

    /**
     * 新增fo_house_preupload_order
     * 
     * @param housePreuploadOrder fo_house_preupload_order
     * @return 结果
     */
    @Override
    public int insertHousePreuploadOrder(HousePreuploadOrder housePreuploadOrder)
    {
        housePreuploadOrder.setCreateTime(DateUtils.getNowDate());
        return housePreuploadOrderMapper.insertHousePreuploadOrder(housePreuploadOrder);
    }

    /**
     * 修改fo_house_preupload_order
     * 
     * @param housePreuploadOrder fo_house_preupload_order
     * @return 结果
     */
    @Override
    public int updateHousePreuploadOrder(HousePreuploadOrder housePreuploadOrder)
    {
        housePreuploadOrder.setUpdateTime(DateUtils.getNowDate());
        return housePreuploadOrderMapper.updateHousePreuploadOrder(housePreuploadOrder);
    }

    @Override
    public int updateHousePreuploadOrderCondition(HousePreuploadOrder housePreuploadOrder, HousePreuploadOrder housePreuploadOrderCondition)
    {
                housePreuploadOrder.setUpdateTime(DateUtils.getNowDate());
        return housePreuploadOrderMapper.updateHousePreuploadOrderCondition(housePreuploadOrder, housePreuploadOrderCondition);
    }

    /**
     * 批量删除fo_house_preupload_order
     * 
     * @param ids 需要删除的fo_house_preupload_order主键
     * @return 结果
     */
    @Override
    public int deleteHousePreuploadOrderByIds(Long[] ids)
    {
        return housePreuploadOrderMapper.deleteHousePreuploadOrderByIds(ids);
    }

    /**
     * 删除fo_house_preupload_order信息
     * 
     * @param id fo_house_preupload_order主键
     * @return 结果
     */
    @Override
    public int deleteHousePreuploadOrderById(Long id)
    {
        return housePreuploadOrderMapper.deleteHousePreuploadOrderById(id);
    }

    /**
     * 条件删除fo_house_preupload_order
     *
     * @param housePreuploadOrder fo_house_preupload_order
     * @return 结果
     */
    @Override
    public int deleteHousePreuploadOrderByCondition(HousePreuploadOrder housePreuploadOrder)
    {
        return housePreuploadOrderMapper.deleteHousePreuploadOrderByCondition(housePreuploadOrder);
    }

}
